package com.wondersgroup.controller;

import java.util.List;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.wondersgroup.model.Customer;
import com.wondersgroup.model.User;


@RestController
@RequestMapping(value="/users")
public class MyRestController {
	
    @RequestMapping(value="/{user}", method=RequestMethod.GET)
    public User getUser(@PathVariable String user) {
        // ...
    	return null;
    }
    
    @RequestMapping(value="/{user}/customers", method=RequestMethod.GET)
    List<Customer> getUserCustomers(@PathVariable String user) {
        // ...
    	return null;
    }
    
    @RequestMapping(value="/{user}", method=RequestMethod.DELETE)
    public User deleteUser(@PathVariable String user) {
        // ...
    	return null;
    }
}